class VehicleTypeDict {
    dict:any=[
        {
            vehicleCode: 1,
            vehicleName: "洒水车"
        },
        {
            vehicleCode: 2,
            vehicleName: "挖掘机"
        },
        {
            vehicleCode: 3,
            vehicleName: "推土机"
        },
        {
            vehicleCode: 4,
            vehicleName: "运输车"
        },
        {
            vehicleCode: 5,
            vehicleName: "汽车吊"
        },
        {
            vehicleCode: 6,
            vehicleName: "破碎锤"
        },
        {
            vehicleCode: 7,
            vehicleName: "装载机"
        },
        {
            vehicleCode: 8,
            vehicleName: "汽车钻"
        },
        {
            vehicleCode: 9,
            vehicleName: "平地机"
        },
        {
            vehicleCode: 10,
            vehicleName: "普通车辆"
        }
    ]

    getNameByCode(code:any){
        let vehicle = this.dict.find((item:any)=>{
            return item.vehicleCode == code
        })
        if(vehicle) return vehicle.vehicleName
        return ""
    }
}

export default new VehicleTypeDict()